import api from "@/api/api.js"
export function  refreshTokenRequest(){
	return new Promise((resolve, reject) =>{
		uni.showLoading({
			title:"加载中"
		})
		uni.login({
			success(res) {
			  api.wxLogin({code:res.code}).then(res=>{
				uni.setStorageSync("token", res.data.token)
				resolve('success')
			  })
			},
			fail(err) {
				reject(err)
			}
		  })
	
	})
	
}